package com.acme;

public class Arrays {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		int [] array = new int[5];
		
		System.out.println(array[2]);
		
		for (int i = 0; i < 5; i++) {
			array[i] = i+1;
		}
		
		System.out.println(array.length);
		System.out.println(array[5]);  //ERROR: java.lang.ArrayIndexOutOfBoundsException - there is no sixth element in array
	}

}
